<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/reset.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/login.css') }}">
</head>
<body>
    <div class="wrapper">
        <div class="header">
            <h1>
                <a id="logo" href="javascript:void(0);">
                    <img src="{{ url_for('static', filename='image/logo.jpg') }}" alt="">
                    <span>学生信息管理系统</span>
                </a>
            </h1>
        </div>
        <div class="main">
            <div class="main-box">
                <form action="/login" method="post">
                    <ul id="login">
                        <li>
                            <h3>平台登录</h3>
                        </li>
                        <li>
                            {% if userinfo %}
                                <input type="text" name="uname" placeholder="账号" required value="{{ userinfo.un }}">
                            {% else %}
                                <input type="text" name="uname" placeholder="账号" required>
                            {% endif %}


                        </li>
                        <li>
                            <input type="text" name="upass" placeholder="密码" required>
                        </li>
                        <li>
                            <input type="text" placeholder="验证码" required>
                            <span>1234</span>
                        </li>
                        <li>
{#                            <input type="submit" value="登录">#}
                            <button type="submit">登录</button>
                        </li>
                    </ul>
                </form>
            </div>
        </div>
        <div class="footer">
            <p>Powered by 新蓝剑 © 2013-2018 北京新蓝剑科技有限公司 版权所有 京ICP备17070472号</p>
        </div>
    </div>
</body>
</html>